2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
and check if the widget is a GtkWidget subclass, not the uninitialized
allocation.
svn path=/trunk/; revision=20644
+2008-06-20 Johan Dahlin <jdahlin@async.com.br>
+
+ * gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
+ and check if the widget is a GtkWidget subclass, not the uninitialized
+ allocation.
+
2008-06-20 Michael Natterer <mitch@imendio.com>
* gtk/gtkaccellabel.h
GtkAllocation
gtk_widget_get_allocation (GtkWidget *widget)
{
- GtkAllocation allocation;
- g_return_val_if_fail (GTK_IS_WIDGET (widget), allocation);
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), widget);
return widget->allocation;
}